import Vue from 'vue'
import Router from 'vue-router'
import AdminLogin from '../components/AdminLogin.vue'
import CoachLogin from '../components/CoachLogin.vue'
import VenueLogin from '../components/VenueLogin.vue'
import AdminRegister from '../components/AdminRegister.vue'
import YogaGoods from '../components/YogaGoods.vue'
import VenueHome from '../components/VenueHome.vue'
import CourseTypeManagement from '../components/CourseTypeManagement.vue'
import AdminHome from '../components/AdminHome.vue'
import CoachManagement from '../components/CoachManagement.vue'
import GoodsManagement from '../components/GoodsManagement.vue'
import UserManagement from '../components/UserManagement.vue'
import AdminAccountManagement from '../components/AdminAccountManagement.vue'
import VenueManagement from '../components/VenueManagement.vue'
import CoachTypeManagement from '../components/CoachTypeManagement.vue'
import coachRegister from '../components/coachRegister.vue'
import VenueRegister from '../components/VenueRegister.vue'
import OrderManagement from '../components/OrderManagement.vue'
import Venueattestation from '../components/Venueattestation.vue'
import CoachHome from '../components/CoachHome.vue'
import CoachattestationVenue from '../components/CoachattestationVenue.vue'
import CoachInfo from '../components/CoachInfo.vue'
import venueRecruit from '../components/venueRecruit.vue'
import VenuePersonalCenter from '../components/VenuePersonalCenter.vue'
import VneueExamineManagement from '../components/VneueExamineManagement.vue'
import VenueClassroom from '../components/VenueClassroom.vue'
import Refund from '../components/Refund.vue'
import VenueLeagueClass from '../components/VenueLeagueClass.vue'
import VenuePersonalClass from '../components/VenuePersonalClass.vue'
import VenueAdminCoach from '../components/VenueAdminCoach.vue'
import VenueExamine from '../components/VenueExamine.vue'
import GoodsRefundExamine from '../components/GoodsRefundExamine.vue'
import CoachExamineManagement from '../components/CoachExamineManagement.vue'
import MyRemuse from '../components/MyRemuse.vue'
import VenueManagementBase from '../components/VenueManagementBase.vue'
import venueAllRecruit from '../components/venueAllRecruit.vue'
import CoachMyStudent from '../components/CoachMyStudent.vue'
import CoachMyVenue from '../components/CoachMyVenue.vue'
import CoachEnterVenue from '../components/CoachEnterVenue.vue'
import CoachMyTeaching from '../components/CoachMyTeaching.vue'
import MyCourse from '../components/MyCourse.vue'
import VenueLeagueClassWorkforce from '../components/VenueLeagueClassWorkforce.vue'
import CoachLeagueClassDeal from '../components/CoachLeagueClassDeal.vue'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      redirect: '/adminLogin',
    },
    {
      path: '/adminLogin',
      component: AdminLogin
    },
    {
      path: '/AdminRegister',
      component: AdminRegister
    },
    {
      path: '/CoachLogin',
      component: CoachLogin
    },
    {
      path: '/coachRegister',
      component: coachRegister
    },
    {
      path: '/VenueRegister',
      component: VenueRegister
    },
    {
      path: '/VenueLogin',
      component: VenueLogin
    },
    {
      path: '/yogaGoods',
      component: YogaGoods
    },
    {
      path: '/AdminHome',
      component: AdminHome,
      children: [{
          path: '/CoachManagement',
          component: CoachManagement
        },
        {
          path: '/GoodsManagement',
          component: GoodsManagement
        },
        {
          path: '/UserManagement',
          component: UserManagement
        },
        {
          path: '/VenueManagement',
          component: VenueManagement
        },
        {
          path: '/AdminAccountManagement',
          component: AdminAccountManagement
        },
        {
          path: '/CoachTypeManagement',
          component: CoachTypeManagement
        },
        {
          path: '/CourseTypeManagement',
          component: CourseTypeManagement
        },
        {
          path: '/OrderManagement',
          component: OrderManagement
        },
        {
          path: '/VneueExamineManagement',
          component: VneueExamineManagement
        }, {
          path: '/CoachExamineManagement',
          component: CoachExamineManagement
        },
        {
          path: '/GoodsRefundExamine',
          component: GoodsRefundExamine
        },
        {
          path: '/VenueManagementBase',
          component: VenueManagementBase
        },
        {
          path: '/Refund',
          component: Refund
        },
      ]
    },
    {
      path: '/VenueHome',
      component: VenueHome,
      children: [{
          path: '/Venueattestation',
          component: Venueattestation
        },
        {
          path: '/VenuePersonalCenter',
          component: VenuePersonalCenter
        },
        {
          path: '/VenueClassroom',
          component: VenueClassroom
        },

        {
          path: '/venueRecruit',
          component: venueRecruit
        },
        {
          path: '/VenueLeagueClass',
          component: VenueLeagueClass
        },
        {
          path: '/VenuePersonalClass',
          component: VenuePersonalClass
        },
        {
          path: '/VenueAdminCoach',
          component: VenueAdminCoach
        },
        {
          path: '/VenueExamine',
          component: VenueExamine
        },
        {
          path: '/VenueLeagueClassWorkforce',
          component: VenueLeagueClassWorkforce
        },
        {
          path: '/CoachMyTeaching',
          component: CoachMyTeaching
        }
      ]
    },
    {
      path: '/CoachHome',
      component: CoachHome,
      children: [{
          path: '/CoachattestationVenue',
          component: CoachattestationVenue
        },
        {
          path: '/CoachInfo',
          component: CoachInfo
        },
        {
          path: '/MyRemuse',
          component: MyRemuse
        },
        {
          path: '/venueAllRecruit',
          component: venueAllRecruit
        },
        {
          path: '/CoachMyStudent',
          component: CoachMyStudent
        },
        {
          path: '/CoachMyVenue',
          component: CoachMyVenue
        },
 {
          path: '/MyCourse',
        component: MyCourse
        },
        {
          path: '/CoachLeagueClassDeal',
          component: CoachLeagueClassDeal
        }
      ]
    }  ]
})
